package com.yunxi.model.otd;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * M1-M3需求计划明细
 * </p>
 *
 * @author 
 * @since 2019-05-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PmsOtdMonthPlanDetail对象", description="月度需求计划明细")
@TableName("PMS_OTD_MONTH_PLAN_DETAIL")
public class MonthPlanDetail  implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "月度需求计划明细ID")
    @TableId(value = "MONTH_PLAN_D_ID", type = IdType.UUID)
    private String monthPlanDId;

    @ApiModelProperty(value = "月度需求计划单号")
    @TableField("MONTH_PLAN_CODE")
    private String monthPlanCode;

    @ApiModelProperty(value = "产品编码")
    @TableField("PRODUCT_CODE")
    private String productCode;

    @ApiModelProperty(value = "选装包编码")
    @TableField("CUSTOM_PACK_CODE")
    private String customPackCode;

    @ApiModelProperty(value = "M1月需求数量")
    @TableField("M1_NUM")
    private Integer m1Num;

    @ApiModelProperty(value = "M2月需求数量")
    @TableField("M2_NUM")
    private Integer m2Num;

    @ApiModelProperty(value = "M3月需求数量")
    @TableField("M3_NUM")
    private Integer m3Num;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "CREATE_BY",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value="CREATE_TIME",fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "最后修改人")
    @TableField(value="UPDATE_BY",fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "最后修改时间")
    @TableField(value="UPDATE_TIME",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Version
    @ApiModelProperty(value = "版本号")
    @TableField("VERSION")
    private Integer version;

    @ApiModelProperty(value = "接口传送标识")
    @TableField("IS_SEND")
    private Integer isSend;

    @ApiModelProperty(value = "是否删除")
    @TableField("IS_DEL")
    private Integer isDel;


}
